﻿@model projectManagementWeb.Models.Developer.DeveloperReportFormModel

@{
    ViewBag.Title = "Reportes de Desarrollador";
}

<p align="right">
    @Html.ActionLink("<< Regresar", "Index")
</p>

<h2>Reportes de Desarrollador:</h2>

<head>
    <script language="javascript" type="text/javascript">

        function enable(enabled) {
            if (enabled == true) {
                //document.getElementById("uniRBP").disabled = false;
                //document.getElementById("uniRBH").disabled = false;
                $('#units').show();
                $('#type').hide();
            }
            else {
                //document.getElementById("uniRBP").disabled = true;
                //document.getElementById("uniRBH").disabled = true;
                $('#units').hide();
                $('#type').show();
            }

        }        
      
    </script>

</head>

<body onload="enable(true);"> 

@using (Html.BeginForm("DeveloperReportsForm", "Developer", FormMethod.Post))
{
    <div>
           <input type="submit" value="Generar Reporte" />
    </div>
    
    <div>
        <fieldset class="nested-Panel">
            <legend>Tipo de Reporte:</legend>
            <p>@Html.RadioButtonFor(m => m.reportType, "ValorGanado", new { @name = "tiporep", @checked = true, @onClick = "enable(true);" }) Valor Ganado </p>
            <p>@Html.RadioButtonFor(m => m.reportType, "Tareas", new { @name = "tiporep", @onclick = "enable(false);" }) Tareas en progreso</p>
        </fieldset>
      
     <fieldset class="nested-Panel" id="units">
            <legend>Unidades:</legend>
            <p>@Html.RadioButtonFor(m => m.units, "Porcentaje", new { @id = "uniRBP", @name = "unidadesrep", @checked = true }) Por Porcentaje </p>
            <p>@Html.RadioButtonFor(m => m.units, "Horas", new { @id = "uniRBH", @name = "unidadesrep" }) Por Horas de Construcción </p>
        </fieldset>

     <fieldset class="nested-Panel" id="type">
            <legend>Detalle:</legend>
            <p>@Html.RadioButtonFor(m => m.detail, "Individual", new { @id = "detailT", @name = "detailrep", @checked = true }) Tareas individuales </p>
            <p>@Html.RadioButtonFor(m => m.detail, "Total", new { @id = "detailI", @name = "detailrep" }) Total de tareas </p>
        </fieldset>
    </div>
    
    <div>
         <fieldset>
            <legend>Visibilidad:</legend>
            <p> Por Proyecto: <span style="position: absolute; left:200px"> @Html.DropDownListFor(m => m.projectID, new SelectList(ViewBag.projectList, "ID", "Name"), new { id = "projectID" }) </span> </p> 
        </fieldset>.
    </div>
   
}






